package com.jt.demo10;

import com.jt.demo10.config.SpringConfig;
import com.jt.demo10.controller.Usercontroller;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMVC {
    public static void main(String[] args) {
        ApplicationContext context=
                new AnnotationConfigApplicationContext(SpringConfig.class);
        Usercontroller usercontroller=context.getBean(Usercontroller.class);
        usercontroller.addUser();
    }
}
